<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/DGrid.css">
    <style>
        .DGrid_table_content{
            width: 1100px;
            position: relative;
        }
    </style>
</head>
<body>
<div class="DGrid_table_content">
    <table class="myTable DGrid_table table table-hover table-bordered text-center">
        <thead>
        <tr>
            <th class="text-center ">表头</th>
            <th class="text-center ">表头</th>
            <th class="text-center">表头</th>
            <th class="text-center">表头</th>
            <th class="text-center">表头</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
        </tr>
        <tr>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
        </tr>
        <tr>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
        </tr>
        <tr>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
        </tr>
        <tr>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
            <td><span>内容</span></td>
        </tr>
        </tbody>
    </table>
</div>
<div><button onclick="dg.checkAll()">全选</button>
<button onclick="dg.checkUnAll()">全不选</button>
<button onclick="dg.checkContrary()">反选</button>
    <button onclick="dg.delChecked()">删除选中的列</button>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/DGrid.js"></script>
<script>
    var dg = new DGrid($(".myTable"),{HCBox: true});
    dg.openEdit();
    dg.dragTr();
</script>
</body>
</html>